package 输入输出模板;

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int l = sc.nextInt();
        int r = sc.nextInt();
        sc.close();
        Formatter fm = new Formatter(System.out);
        long[] lresult = new long[10];
        long[] rresult = new long[10];
        foo(l - 1, lresult);
        foo(r, rresult);
        for (int i = 1; i < 10; i++) {
            fm.format("%d\n", rresult[i] - lresult[i]);
        }
        fm.close();
    }

    private static int c = (int) 1e8;

    private static void update(int a, int b, int n, long[] p) {

        int k = n / a;
        int afirst = a / c;
        int bfirst = b / c;
        if (bfirst == afirst) {
            p[afirst] += (b - a + 1) * k;
        } else {
            int m = afirst + 1;
            p[afirst] += (m * c - a) * k;
            while (m < bfirst) {
                p[m++] += c * k;
            }
            if (m == 10) {
                return;
            }
            p[m] += (b - m * c + 1) * k;
        }
    }

    private static void foo(int n, long[] p) {
        for (int k = 1; k <= 1e7; k *= 10) {
            for (int a = 1; a <= 9; a++) {
                for (int i = a * k; i < (a + 1) * k; i++) {
                    p[a] += n / i;
                }
            }
        }
        if (n - 1 >= c) {
            int k = n / c;
            int a = c;
            int b = n / k;
            update(a, b, n, p);
            while (--k != 0) {
                a = b + 1;
                b = n / k;
                update(a, b, n, p);
            }
        }
    }
}